package com.guozcc.bootweb.platform.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import java.lang.annotation.*;

@Target({ElementType.TYPE,ElementType.METHOD})//类、方法生效
@Retention(RetentionPolicy.RUNTIME)//运行时生效
@Documented
@RequestMapping
public @interface Trade {

    //覆盖RequestMapping注解的value属性
    @AliasFor(annotation = RequestMapping.class,attribute = "value")
    String tradeCode() default "";

    String tradeName() default "";
}
